package com.define.ssh.service.impl;


import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.define.ssh.dao.GroupmemberRegularDao;
import com.define.ssh.model.GroupmemberRegular;
import com.define.ssh.service.GroupmemberRegularService;




@Service("groupmemberRegularServiceImpl")
public class GroupmemberRegularServiceImpl extends BaseServiceImpl<GroupmemberRegular, Long> implements GroupmemberRegularService{

	@Resource(name = "groupmemberRegularDaoImpl")
	private GroupmemberRegularDao groupmemberRegularDao;
	
	@Resource(name = "groupmemberRegularDaoImpl")
	public void setBaseDao(GroupmemberRegularDao groupmemberRegularDao) {
		super.setBaseDao(groupmemberRegularDao);
	}
	public void save(List<GroupmemberRegular> list) {
		
		groupmemberRegularDao.save(list);
	}
	
	public Integer gmcount(Integer pid){
		
		return groupmemberRegularDao.gmcount(pid);
	}
	
	public void updateAllUpdatetype(String groupid,Integer updatetype){
		 groupmemberRegularDao.updateAllUpdatetype(groupid, updatetype);
	}

}
